<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@include file="../blocks/header.jsp" %>

<div class="row">
    <h4>Личный кабинет врача</h4>
    <div class="span8">
        <table class="table table-hover">
            <caption>Пациент №${patient.id}</caption>
            <tbody>
            <tr>
                <th>ФИО</th>
                <td>${patient.fullName}</td>
            </tr>
            <tr>
                <th>Контакты:</th>
                <td>${patient.email}, ${patient.telephoneNumber}</td>
            </tr>
            <tr>
                <th>Пол</th>
                <td>${patient.sex}</td>
            </tr>
            <tr>
                <th>рост</th>
                <td>${patient.growth}</td>
            </tr>
            <tr>
                <th>вес</th>
                <td>${patient.weight}</td>
            </tr>
            <tr>
                <th>адрес</th>
                <td>${patient.country}, ${patient.state}, ${patient.city}</td>
            </tr>
            <tr>
                <th>Дата регистрации</th>
                <td><fmt:formatDate value="${patient.dateRegistration}" pattern="HH:mm:ss dd.MM.yy" /></td>
            </tr>
            </tbody>
        </table>

        <table class="table table-bordered">
            <caption>Журнал</caption>
            <thead>
            <tr>
                <th>Дата</th>
                <th>САД</th>
                <th>ДАД</th>
                <th>Пульс</th>
                <th>Деятельность</th>
                <th></th>
            </tr>
            </thead>
            <tbody>
            <c:forEach  var="item" items="${journalItems}">
                <tr>
                    <td><fmt:formatDate value="${item.date}" pattern="HH:mm:ss dd.MM.yy" /></td>
                    <td>${item.sad}</td>
                    <td>${item.dad}</td>
                    <td>${item.pulse}</td>
                    <td>${item.job}</td>
                    <td>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</div>


<%@include file="../blocks/footer.jsp" %>